<?php

namespace app\common\model\Post;

use think\Model;

// 帖子收藏表
class Collect extends Model
{
    protected $name = "post_collect";

    public function post()
    {
        return $this->belongsTo('app\common\model\post\Post', 'postid', 'id', [], 'LEFT')->setEagerlyType(0);
    }

    public function business()
    {
        return $this->belongsTo('app\common\model\Business\Business', 'busid', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}
